package com.yami.shop.mystery.common.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 活动扩展表
 *
 * @author wxf
 * @date 2023/4/12 10:23
 */
@TableName(value = "tz_activity_prod")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ActivityProd implements Serializable {

    @TableId
    @Schema(description = "主键")
    private long id;

    @Schema(description = "活动ID")
    private long activityId;

    @Schema(description = "商品ID（专题活动为活动ID,盲盒活动为盲盒盒子ID，预售商品为商品ID")
    private long prodId;

    @Schema(description = "商品SKU_ID")
    private long skuId;

    @Schema(description = "报名人数")
    private long applyNum;

    @Schema(description = "注水报名人数")
    private long waterApplyNum;

    @Schema(description = "优惠购价格(单位分)")
    private long preemptionPrice;

    @TableLogic
    @Schema(description = "逻辑删除")
    private long isDel;

    @TableField(exist = false)
    @Schema(description = "产品名称")
    private String prodName;

    @TableField(exist = false)
    @Schema(description = "主图")
    private String pic;

    @Schema(description = "商品用于活动的库存")
    private Integer prodOriginStocks;

    @Schema(description = "商品用于活动的剩余库存")
    private Integer prodTotalStocks;

    @Schema(description = "活动商品限购数")
    private Integer purchaseNum;

    @Schema(description = "已补货数量")
    private Integer alreadyReplenishmentQuantity;

    private String linkAddr;
    private String qrcodeAddr;

}
